<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>JS练习</title>
</head>
<script type="text/javascript">

		
		function daojishi () {
		now = new Date() ;
		Math.round(now.getTime()/1000)
		
		date51 = new Date("2017-05-01")
		Math.round(date51.getTime()/1000)

		wuyueyiri = Math.round(date51.getTime()/1000)
		dangqian = Math.round(now.getTime()/1000)
		jiange = wuyueyiri - dangqian
		 
		document.write(Date(parseInt(jiange) * 1000).toLocaleString().replace(/:\d{1,2}$/,' '))
		document.write("</br>")
		}
		

		// var unixTimestamp = new Date(Unix timestamp * 1000) 
		// commonTime = unixTimestamp.toLocaleString()
		// alert(commonTime)
		time = setInterval('daojishi()',1000)





</script>
<body>
	










</body>
</html>